import request from '@/utils/request'
export default {
  getSeckillProdctByNow(pagenum) {
    return request({
      url: `/seckill/seckill-product/getNow`,
      method: 'get',
      params: {
        "pageNum":pagenum,
      }
    })
  },
  getSeckillProdctByBefore(pagenum) {
    return request({
      url: `/seckill/seckill-product/getBefore`,
      method: 'get',
      params: {
        "pageNum":pagenum,
      }
    })
  },
  getSeckillProdctByAfter(pagenum) {
    return request({
      url: `/seckill/seckill-product/getAfter`,
      method: 'get',
      params: {
        "pageNum":pagenum,
      }
    })
  },

  getSeckillProdctById(id) {
    return request({
      url: `/seckill/seckill-product/getSeckillProductById/`+id,
      method: 'get',
    })
  },
}